package com.sxkiler.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/com.sxkiler.demo.test")
public class TestController {

    Logger logger = LoggerFactory.getLogger(TestController.class);
    @Value("${didispace.title:}")
    private String title;

    @GetMapping("/com.sxkiler.demo.test")
    public String hello() {
        logger.info("title:" + title);
        return title;
    }
}
